package org.jeecg.modules.platform.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.platform.entity.Brand;
import org.jeecg.modules.platform.facade.IBrandFacade;
import org.jeecg.modules.platform.service.IBrandService;
import org.jeecg.modules.platform.vo.BrandVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 品牌
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class BrandFacadeImpl extends IFacadeImpl<BrandVo, Brand, IBrandService>  implements IBrandFacade<BrandVo, Brand> {
        @Autowired
        private IBrandService brandService;


         @Override
         public Brand po2Vo(BrandVo vo) {
                Brand po = new Brand();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public BrandVo vo2Po(Brand po) {
                BrandVo vo = new BrandVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
